import request from '@/utils/request'

// 查询博客列表
export function listVerBlog(query) {
  return request({
    url: '/system/verBlog/list',
    method: 'get',
    params: query
  })
}

// 查询博客详细
export function getVerBlog(blogId) {
  return request({
    url: '/system/verBlog/' + blogId,
    method: 'get'
  })
}

// 新增博客
export function addVerBlog(data) {
  return request({
    url: '/system/verBlog',
    method: 'post',
    data: data
  })
}

// 修改博客
export function updateVerBlog(data) {
  return request({
    url: '/system/verBlog',
    method: 'put',
    data: data
  })
}

// 删除博客
export function delVerBlog(blogId) {
  return request({
    url: '/system/verBlog/' + blogId,
    method: 'delete'
  })
}
